#pragma once
#include <IO.h>
#include <fstream>
#include <string>
using namespace Eigen;
const static IOFormat CSVFormat(FullPrecision, 0, ", ");
void eigen_to_csv(const std::string file_name, const Eigen::MatrixXd &mat)
{
	std::ofstream file_out(file_name);
	file_out << mat.format(CSVFormat);
}